import request from '@/utils/request'

// 添加评论
export function addComment(data) {
  return request({
    url: '/api/comment/add',
    method: 'post',
    data
  })
}

// 获取课程评论列表
export function getComments(lessonId) {
  return request({
    url: `/api/comment/list/${lessonId}`,
    method: 'get'
  })
}

// 删除评论
export function deleteComment(id) {
  return request({
    url: `/api/comment/${id}`,
    method: 'delete'
  })
} 